﻿// MIT License
// 开源地址：https://gitee.com/co1024/AbcMvc
// Copyright (c) 2021-2022 1024
// Abc.Mvc=Furion+EF+SqlSugar+Pear layui admin.

namespace Abc.Core.Entities.Files;

/// <summary>
/// 文件
/// </summary>
[Comment("文件")]
[Table("Sys_File")]
public class SysFile : FullEntity, IEntityTypeBuilder<SysFile>
{
    /// <summary>
    /// 名称
    /// </summary>
    [Comment("名称")]
    public string Name { get; set; }
    /// <summary>
    /// 格式
    /// </summary>
    [Comment("格式")]
    public string Format { get; set; }
    /// <summary>
    /// 大小
    /// </summary>
    [Comment("大小")]
    public int Size { get; set; }
    /// <summary>
    /// 分类
    /// </summary>
    [Comment("分类")]
    public string Type { get; set; }

    /// <summary>
    /// 存储到bucket的名称（文件唯一标识id）
    /// </summary>
    [Comment("存储到bucket的名称")]
    [MaxLength(100)]
    public string FileObjectName { get; set; }

    /// <summary>
    /// 存储路径
    /// </summary>
    [Comment("存储路径")]
    [MaxLength(100)]
    public string FilePath { get; set; }
    /// <summary>
    /// 来源数据ID
    /// </summary>
    [Comment("来源数据ID")]
    public int DataId { get; set; }

    /// <summary>
    /// 来源数据类型
    /// </summary>
    [Comment("来源数据类型")]
    public string DataType { get; set; }


    #region ref


    #endregion

    public void Configure(EntityTypeBuilder<SysFile> entityBuilder, DbContext dbContext, Type dbContextLocator)
    {

    }
}
